<html>
<head>
<title>Mua bán cho nhận</title>
<link href="<s:url value='/styles/mbcn.css'/>" rel="stylesheet"
	media="screen" />
<script type="text/javascript" src="<s:url value='/js/jquery.form.js'/>"></script>
<script type="text/javascript" src="<s:url value='/js/mbcn.js'/>"></script>
</head>
<body>
	<div class="container">
		<div id="mbcn">
			<h1>Mua bán cho nhận</h1>
			<form action="addItem" class="mbcn" method="post">
				<div id="image"
					style="width: 280px; height: 280px; background-image: url('images/mainImg.jpg');">
				</div>
				<div class="row_item">
					<label class="item_label">Ảnh</label>
					<s:textfield name="itemImage_"
						placeholder="Liên kết đến ảnh từ trang web khác (URL)"></s:textfield>
				</div>
				<div class="row_item">
					<p>
						Hoặc <a href="#" onclick="javascript:uploadImage();"
							class="ng-binding">chọn file từ máy </a>
					</p>

				</div>

				<div class="row_item">
					<label class="item_label">Tiêu đề</label>
					<s:textfield name="itemTitle"></s:textfield>
				</div>
				<div class="row_item">
					<label class="item_label">Mục</label>
					<s:select list="#{'1':'Mua','2':'Bán', '3':'Cho', '4':'Nhận'}"
						value="3" name="itemCategory" id="selMbcn" />
				</div>
				<div class="row_item">
					<label class="item_label">Nội dung</label>
					<s:textarea name="itemContent" cols="50" rows="10" />
				</div>
				<div>
					<label id="chkPostFb"><s:checkbox name="checkMe"
							fieldValue="true" />Gửi lên Facebook</label>

				</div>
				<div class="btnSubmit">
					<button type="submit" class="btnMbcn">mbcn</button>
				</div>
			</form>
		</div>
	</div>
	<s:actionerror />
	<s:form action="uploadImage" id="formUpload" method="post"
		enctype="multipart/form-data" style="display : none;">
		<s:hidden name="fileType" value="item" />
		<s:file name="userImage" label="User Image" id="openDialog" />
	</s:form>

</body>
</html>